package com.jycrm.dao.sms.impl;

import com.jycrm.dao.core.AbstractService;
import com.jycrm.dao.sms.ISmsInfoDao;
import com.jycrm.domain.sms.SmsInfo;

public class SmsInfoDaoImpl extends AbstractService implements ISmsInfoDao {

	public void save(SmsInfo sms) {
		persistenceManager.create(sms);

	}

	public void update(SmsInfo sms) {
		persistenceManager.update(sms);

	}

	public void delete(SmsInfo sms) {
		persistenceManager.delete(sms);

	}

	public SmsInfo getSmsInfoByID(Long id) {
		return (SmsInfo) queryManager.getObjectById(SmsInfo.class, id);

	}
	
	
	public void deleteSmsSendTargetByCrmTempSmsDeleteTable(){
		
		this.sqlMapManager.getSqlMapClientTemplate().delete("deleteSmsInfoByTemp",null);
		
	}

}
